<template>
  <div>
    <div
      id="areaLocl"
      style="position:absolute;top: 29px;left: 26px;z-index: 2000;"
    >
      <div
        id="areaLocl-btn"
        :class="leftShow ? 'legend-up-arrow' : ''"
        @click="
          () => {
            leftShow = !leftShow;
          }
        "
      >
        区域定位
      </div>
      <div class="localList" v-if="leftShow">
        <table id="listTop">
          <caption>
            农村宅基地
          </caption>
          <!-- <tbody> -->
          <tr v-for="(item, index) in localList['农村宅基地']" :key="index">
            <td>{{ index + 1 }}</td>
            <td>{{ item.coordinate }}</td>
            <td>
              <button @click="changeMap(item)">定位</button>
            </td>
          </tr>
          <!-- </tbody> -->
        </table>

        <table id="listMid">
          <caption>
            采矿用地
          </caption>
          <tr v-for="(item, index) in localList['采矿用地']" :key="index">
            <td>{{ index + 1 + localList["农村宅基地"].length }}</td>
            <td>{{ item.coordinate }}</td>
            <td>
              <button @click="changeMap(item)">定位</button>
            </td>
          </tr>
        </table>

        <table id="listBot" style="margin-top:5px">
          <caption>
            公路用地
          </caption>
          <tr v-for="(item, index) in localList['公路用地']" :key="index">
            <td>
              {{
                index +
                  1 +
                  localList["农村宅基地"].length +
                  localList["采矿用地"].length
              }}
            </td>
            <td>{{ item.coordinate }}</td>
            <td>
              <button @click="changeMap(item)">定位</button>
            </td>
          </tr>
        </table>
      </div>
    </div>

    <div id="legend" style="display: block;">
      <img src="@/assets/imgs/legend_wj.png" alt="" v-show="legendShow" />
      <div id="legend-btn" class="" @click="legendShow = !legendShow">图例</div>
    </div>
    <!--<div class="legendBtn">
		</div>
		<div class="legendPanel">
			<img src="./img/legend_wj.png" width="100px;" alt="" />
		</div>-->
    <div id="swiper-history">
      <div class="swiper-container">
        <div class="swiper-pagination"></div>
        <div class="swiper-wrapper"></div>
        <div class="short-line"></div>
        <div class="long-line"></div>
      </div>
      <div class="swiper-button-prev"></div>
      <div class="swiper-button-next"></div>
    </div>
    <div class="fixPanel">
      <!-- <div class="btnGround" id="contrast-div" style="right: 32px;">
        <div id="contrast-note">
          <button onClick="submit()">对比</button>
          <button onClick="reset()">重置</button>
          <p>在下方时间轴上选择两期监测产品或影像后点击 对比按钮</p>
          <div class="close-btn"></div>
        </div>
        <ul id="fixList" class="contrast-list"></ul>
        <div id="contrast-img">
          监测产品对比<i class="">（ <span class="count">0</span>/2）</i>
        </div>
        <i></i>
      </div> -->
      <ul id="fixList"></ul>
    </div>
    <a class="toPdfChild" href="" target="_blank">
      <div class="toPdf">监测报告</div>
    </a>
    <div id="index" style="height: 100%;">
      <div id="container" style="height: 100%;">
        <iframe
          id="if_container"
          src="/static/iframe/demo.html?url=http://58.242.68.18:35501/iservertwo/services/map-taigu23/rest/maps/@taigu_cut_1&x=12551106.61&y=4495357.21&zoomsize=11.5"
          style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;height: 100%;width: 100%;"
        ></iframe>
        <!--地图容器-->
        <div id="map"></div>
        <!--导航选择-->
        <!--	<div id="navigation">
					<div id="nav-list" class="has-nav-item">城市规划</div>
				</div>-->
        <!--单选工具栏-->
        <!--<div id="geoTools">
                                <div id="geoToolsContent">
                                        <div id="geoToolsSelected">
                                                操作模式：<span>漫游浏览</span>
                                        </div>
                                        <ul id="geoToolsSelect-list">
                                             <li title="浏览地图" class="active" value="view">漫游浏览</li>
                                             <li title="测量距离" value="length">测量距离</li>
                                             <li title="测量面积" value="area">测量面积</li>
                                        </ul>
                                </div>
                        </div>-->
        <!--鼠标位置坐标显示-->
        <div id="mouseposition"></div>
        <!--底图选择-->
        <div id="baseMapSelect">
          <div id="baseMapSelectContent">
            <div id="selected">当前底图：太谷县0.5米影像地图<span></span></div>
            <ul id="baseMapSelect-list"></ul>
          </div>
        </div>
        <div id="legend">
          <img src="" alt="" />
          <div id="legend-btn">图例</div>
        </div>

        <div id="currentMsg">
          当前监测产品：农田侵占
          <span></span>
        </div>
        <div id="quitFullScreen"></div>
        <!--专题报告-->
        <div id="report">
          <div id="report-header">
            <a id="report-title" target="_blank" title="全屏查看"></a>
            <a href="" id="report-download"></a>
          </div>
          <div id="report-content"></div>
        </div>
        <div id="show-report" data-index="0">
          收起
        </div>
        <!--时间轴-->
        <div id="timeLine-content">
          <div id="timeLine-left-arrow" class="pull-left"></div>
          <div id="timeLine-center" class="pull-left">
            <div id="timeLine"></div>
          </div>
          <div id="timeLine-right-arrow" class="pull-right"></div>
        </div>
        <div id="layersImg-timeNote">
          <p></p>
          <div class="contrast-btn"></div>
        </div>
        <!--时间轴-->
        <script type="text/html" id="timeLine-template">
          {% each arr %}
          <div class="node" data-starttime="{% $value.starttime %}" data-period="{% $value.period %}" data-index="{% $index %}">
          	{% if $value.month == 1%}
          	<span class='yearNote'>{% $value.year %}年{% $value.month %}月</span> {% else %}
          	<span>{% $value.month %}月</span> {% /if%} {% if $index == arr.length-1 %} {% if $value.lastMonth ==1 %}
          	<i class='lsatNodeYearNote'>{% $value.lastYear %}年{% $value.lastMonth %}月</i> {% else %}
          	<i>{% $value.lastMonth %}月</i> {% /if %} {% /if %}
          </div>
          {% /each %}
        </script>

        <script type="text/html" id="point-template">
          <div class="layersImg point" data-id="{%hematicid%}" data-mapserviceid="{%mapserviceid%}" data-timelineid="{%timelineid%}" data-basemapid="{%basemapid%}" data-date="{% starttime | dateFormat  %}" data-displayName="{% displayname  %}" style="left: {%deviation%}%">
          </div>
        </script>
        <script type="text/html" id="line-template">
          <div class="layersImg line" data-id="{%hematicid%}" data-mapserviceid="{%mapserviceid%}" data-timelineid="{%timelineid%}" data-basemapid="{%basemapid%}" data-date="{% starttime | dateFormat  %}~{% endtime | dateFormat  %}" data-displayName="{% displayname  %}" style="left: {%deviation%}%;width:{%lineWidth%}px">
          </div>
        </script>
      </div>
    </div>
    <script type="text/html" id="baseMap-template">
      {% each baseMapInfoList %}
      <li data-id="{% $value.id %}" title="{% $value.name %}" data-index="{% $index %}" data-timelineid={% timelineid %}>{% $value.name %}</li>
      {% /each %}
    </script>
  </div>
</template>
<script>

import "@/assets/style/fullScreenMap.css";
import "@/assets/style/timeline.css";
import "@/assets/style/swiper.min.css";
import { fetch } from "@/network/network";
let historyList = [];

export default {
  data() {
    return {
      url: "/static/iframe/demo.html",
      leftShow: false,
      legendShow: false,
      localList: [],
      modifier: 3, //每天的px
      historyList: [],
    };
  },
  mounted() {
    const mark = this.$route.query.mask;
    console.log(mark);
    document.getElementById("app").style.height =
      (document.documentElement.clientHeight || document.body.clientHeight) +
      "px";
    document.getElementById("app").style.width =
      (document.documentElement.clientWidth || document.body.clientWidth) +
      "px";

    document.getElementById("map").style.height =
      (document.documentElement.clientHeight || document.body.clientHeight) +
      "px";
    document.getElementById("map").style.width =
      (document.documentElement.clientWidth || document.body.clientWidth) +
      "px";
    // this.findlocalList("2020-07-07");
    this.findMapBlockInfo().then(() => {
      this.$nextTick(() => {
        const mySwiper = new Swiper("#swiper-history .swiper-container", {
          virtualTranslate: true,
          preventClicks: false,
          prevButton: "#swiper-history .swiper-button-prev",
          nextButton: "#swiper-history .swiper-button-next",
          pagination: "#swiper-history .swiper-pagination",
          paginationClickable: true,
          paginationBulletRender: function(swiper, index, className) {
            let marginLeft = "";
            if (index > 0) {
              let day1 = new Date(
                historyList[index]["date"].replace(/-/g, "/")
              );
              let day2 = new Date(
                historyList[index - 1]["date"].replace(/-/g, "/")
              );
              let time = day1 - day2;
              marginLeft =
                parseInt(time / (1000 * 60 * 60 * 24)) * this.modifier;
            } else {
              marginLeft = 0;
            }

            return (
              '<span class="' +
              className +
              '" style="margin-left:' +
              marginLeft +
              'px;"></span>'
            );
          }.bind(this),
          onInit: function(swiper) {
            let mySlides = "";
            for (var i = 0; i < this.historyList.length; i++) {
              swiper.appendSlide(
                '<div class="swiper-slide slide' +
                  i +
                  '"><span class="detail btn" data-url="' +
                  this.historyList[i]["url"] +
                  '" data-content="' +
                  this.historyList[i]["content"] +
                  '"data-title=' +
                  this.historyList[i]["title"] +
                  ' onClick="chooseToogle(this);">' +
                  this.historyList[i]["detail"] +
                  '</span><span class="date">' +
                  this.historyList[i]["content"] +
                  "</span></div>"
              );
              swiper.slides[i].style.transform =
                "translate3d(" + -i * swiper.width + "px, 0px, 0px)";
            }

            swiper.slideTo(historyList.length);
            this.findlocalList(historyList[historyList.length - 1].date);
          }.bind(this),
          onSlideChangeStart: function(swiper) {
            let detailPrev = swiper.slides[swiper.previousIndex].querySelector(
              ".detail"
            );
            let datePrev = swiper.slides[swiper.previousIndex].querySelector(
              ".date"
            );
            detailPrev.offsetHeight;
            datePrev.offsetHeight;
            swiper.slides[swiper.previousIndex].style.zIndex = 1;
            detailPrev.style.opacity = datePrev.style.opacity = 0;
            detailPrev.style.transform = datePrev.style.transform =
              "translate3d(0px, 0px, 0px)";

            let detailActive = swiper.slides[swiper.activeIndex].querySelector(
              ".detail"
            );
            let dateActive = swiper.slides[swiper.activeIndex].querySelector(
              ".date"
            );
            // detailActive.offsetHeight;
            // dateActive.offsetHeight;
            swiper.slides[swiper.activeIndex].style.zIndex = 999;
            detailActive.style.opacity = dateActive.style.opacity = 1;
            detailActive.style.transform = "translate3d(0px, 10px, 0px)";
            dateActive.style.transform = "translate3d(0px, -10px, 0px)";

            let moveDay1 = new Date(
              historyList[swiper.activeIndex]["date"].replace(/-/g, "/")
            );
            let moveDay2 = new Date(historyList[0]["date"].replace(/-/g, "/"));
            let moveTime = moveDay1 - moveDay2;
            // moveTime = swiper.activeIndex
            // moveDistance=parseInt( moveTime/ (1000 * 60 * 60 * 24))*modifier+60*swiper.activeIndex;
            let moveDistance =
              parseInt(moveTime / (1000 * 60 * 60 * 24)) * this.modifier +
              10 * swiper.activeIndex;

            // moveDistance = moveTime * 70
            let move = swiper.width / 2 - 5 - moveDistance;
            swiper.paginationContainer[0].style.left = move + "px";

            //		$('#if_container').attr('src', historyList[swiper.activeIndex].url)
            //		$('#if_container')[0].contentWindow.url = historyList[swiper.activeIndex].url

            //
            //
            $("#if_container").attr(
              "src",
              `${this.url}?url=${
                historyList[swiper.activeIndex].url
              }&x=12551106.61&y=4495357.21&zoomsize=11.5`
            );
            $(".toPdfChild").attr(
              "href",
              `${historyList[swiper.activeIndex].pdfUrl}`
            );
            if (!historyList[swiper.activeIndex].pdfUrl) {
              $(".toPdf").hide();
              //			$('.detail').hide();
            } else {
              $(".toPdf").show();
              //			$('.detail').show();
            }
            $("#selected").text(historyList[swiper.activeIndex].content_title);
            //		console.log('iframeurl===>',$('#if_container')[0].contentWindow.url)
            //		$('#if_container')[0].contentWindow.location.reload(true)
            //		console.log('iframeurlafter===>',$('#if_container')[0].contentWindow.url)
            //		console.log('url===>', historyList[swiper.activeIndex].url)
          }.bind(this),
        });
      });
    });
    // $("#swiper-history").mouseover(function() {
    //   $(".swiper-slide-active>.btn").css("display", "block");
    // });
    // $("#swiper-history").mouseout(function() {
    //   $(".swiper-slide-active>.btn").css("display", "none");
    // });
    $("#quitFullScreen").click(() => {
      document.getElementById("app").style.height = "1152px";
      document.getElementById("app").style.width = "3072px";
      this.$router.push({ path: "/ng-remote-sensing" });
      // window.location.href = "$/#/ng-remote-sensing"
    });
  },
  methods: {
    findlocalList(date) {
      const url = "/rs-datatg/rest/getLandBlockInfo";
      const param = {
        date,
      };
      fetch(url, param).then((res) => {
        const obj = {};
        res.forEach((item) => {
          if (!obj[item.info]) {
            obj[item.info] = [];
          }
          obj[item.info].push(item);
        });
        this.localList = obj;
      });
    },
    findMapBlockInfo() {
      return new Promise((resolve, reject) => {
        const url = "/rs-datatg/rest/getMapBlockInfo";
        fetch(url).then((res) => {
          for (var i = 0; i < res.length; i++) {
            var obj = new Object();
            obj.detail = "加入对比";
            obj.date = res[i].date;
            obj.url = res[i].mapUrl;

            obj.info = res[i].info;
            obj.content = res[i].info;
            obj.pdfUrl = res[i].pdfUrl;
            obj.title = res[i].content;
            obj.content_title = res[i].title;
            historyList.push(obj);
            this.historyList.push(obj);
          }
          resolve();
        });
      });
    },
    changeMap(data) {
      $("#if_container").attr(
        "src",
        `/static/iframe/demo.html?x=${data.x}&y=${data.y}&url=${data.mapUrl}&zoomsize=${data.zoom}`
      );
    },
    // chooseToogle(e) {
    //   if(e.getAttribute('data-url') == '') {
    // 			alert('该节点没有数据')
    // 			return;
    // 		}
    // 		if(e.className.indexOf('join') != -1) {
    // 			e.classList.remove('join')
    // 		} else {
    // 			e.classList.add('join')
    // 		}
    // 		$('#contrast-note').show().css({'display': 'block','opacity': 1})
    // 		$('.contrast-list').show()
    // 		// onchange()
    // },
  },
};
</script>
<style>

#swiper-history {
  z-index: 2;
  width: 100%;
  position: fixed;
  bottom: 0;
  background-color: rgba(15, 15, 15, 0.78);
}

#swiper-history .swiper-container {
  height: 44px;
  margin: 0 40px;
  background-color: rgba(44, 44, 44, 0.78);
}

#swiper-history .short-line {
  height: 22px;
  border-bottom: 1px dashed #fff;
  width: 30px;
  position: absolute;
  top: 0px;
}

#swiper-history .long-line {
  height: 22px;
  border-bottom: 1px solid #fff;
  /* width: 100%; */
  position: absolute;
  top: 0px;
  left: 30px;
  right: 0;
}

#swiper-history .swiper-slide span {
  /* display: block; */
  width: 100%;
  text-align: center;
  position: absolute;
  transition: 700ms;
}

#swiper-history .swiper-slide .detail {
  height: 20px;
  line-height: 20px;
  top: 10px;
  opacity: 0;
  width: 70px;
  position: relative;
  left: 46%;
  top: -25px;
}

.swiper-container {
  overflow: unset;
}

#swiper-history .swiper-slide .date {
  color: #007aff;
  position: absolute;
  bottom: -12px;
  opacity: 0;
}

/* #swiper-history .swiper-slide-active span {
  transition: 700ms 700ms;
} */

#swiper-history .swiper-pagination-bullets {
  white-space: nowrap;
  width: auto;
  bottom: 15px;
  height: 10px;
  line-height: 10px;
  transition: 700ms;
}

#swiper-history .swiper-pagination-bullet {
  background: #fff;
  border: 1px solid #fff;
  opacity: 1;
  line-height: 10px;
  position: relative;
  top: -1px;
}

#swiper-history .swiper-pagination-bullet-active {
  background: #007aff;
}

#swiper-history .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {
  margin: 0;
  border-radius: 50%;
}

#swiper-history .swiper-button-next,
#swiper-history .swiper-button-prev {
  background-size: 20px auto;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 0;
}

.btn {
  font-family: "'微软雅黑','Helvetica Neue',Helvetica,Arial,sans-serif";
  font-size: 13px !important;
  height: 30px !important;
  width: 100px !important;
  line-height: 18px !important;
  padding: 3px 18px;
  display: inline-block;
  vertical-align: middle;
  font-weight: normal;
  border-radius: 3px;
  margin: 0 8px 0 3px;
  background-color: #0f2969;
  cursor: pointer;
  border: 1px solid #03e3de;
  color: #03e3de;
  display: none;
  z-index: 999;
}

.toPdf {
  position: fixed;
  right: 284px;
  top: 29px;
  padding: 0 10px;
  height: 36px;
  line-height: 36px;
  border: 1px solid #03b4e9;
  border-radius: 3px;
  background-color: #0f2969;
  color: #03e3de;
  z-index: 2000;
  display: none;
}

/* .swiper-slide-active:hover .btn {
			display: block;
			color: #fff !important;
		} */

.join {
  background-color: #fff !important;
  color: #0f2969 !important;
  border: 1px solid #0f2969 !important;
}

button {
  width: 100px;
  height: 40px;
}

/* .fixPanel {
  z-index: 1;
  width: 200px;
  background: #181a2d;
  border: 1px solid #03e3de;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  bottom: 150px;
  right: 0;
  cursor: pointer;
  padding: 16px;
} */

.btnGround {
  width: 100%;
  /*display: flex;
			justify-content: space-between;*/
}

#fixList {
  list-style: none;
  /*padding: 0;
			width: 100%;*/
}

/* #fixList li {
  width: 100%;
  line-height: 32px;
  text-align: center;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 0 8px;
  color: #03e3de;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
  margin-bottom: 16px;
  margin-top: 16px;
} */

.submit {
  padding: 8px 12px;
  line-height: 24px;
  background: #0f2969;
  border: #03e3de;
  color: #03e3de;
  width: 60px;
  border-radius: 3px;
  text-align: center;
}

.fixSliderModal {
  z-index: 1;
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  transition: all 0.5s;
  -webkit-transform: translateX(300px);
  -moz-transform: translateX(300px);
  -ms-transform: translateX(300px);
  -o-transform: translateX(300px);
  transform: translateX(300px);
}

.modalMain {
  z-index: 3;
  width: 300px;
  height: 100%;
  background: #181a2d;
  color: #fff;
  font-size: 16px;
}

.modalBtn {
  transform: translateY(-100px);
  width: 50px;
  text-align: center;
  color: #fff;
  background: #181a2d;
  padding: 10px 10px;
  box-sizing: border-box;
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px 0 0 8px;
}

.modalMain p {
  padding: 0 20px;
  text-indent: 2em;
  height: 100%;
  overflow-y: auto;
}

.legendBtn {
  width: 36px;
  height: 36px;
  background: rgba(3, 35, 105, 0.85) url("../../../assets/imgs/legend_icon.png")
    no-repeat 7px center;
  border: 1px solid #00ccff;
  color: #02f1e7;
  border-radius: 6px;
  cursor: pointer;
  position: fixed;
  z-index: 1253;
  bottom: 55px;
  left: 20px;
}

.legendPanel {
  display: none;
  width: 200px;
  position: fixed;
  left: 60px;
  z-index: 1;
  bottom: 40px;
}

#contrast-div {
  position: absolute;
  right: 32px;
  bottom: 57px;
  width: 207px;
  z-index: 2000;
}

#contrast-div #contrast-note {
  display: none;
  width: 100%;
  padding: 25px 12px 0;
  text-align: center;
  background-color: rgba(3, 35, 105, 0.85);
  border-radius: 4px;
  color: #fff;
  margin-bottom: 1px;
}

#contrast-div #contrast-note .close-btn {
  position: absolute;
  width: 16px;
  height: 16px;
  right: 6px;
  top: 9px;
  cursor: pointer;
}

#contrast-div #contrast-note .close-btn:before {
  content: "×";
  position: absolute;
  width: 16px;
  height: 16px;
  left: -1px;
  top: -12px;
  font-size: 26px;
}

#contrast-div #contrast-note button {
  background-color: rgba(4, 180, 224, 0.78);
  border-radius: 4px;
  width: 183px;
  height: 28px;
  border: none;
  width: 40%;
}

#contrast-div #contrast-note button:hover {
  background-color: #046ce0;
}

#contrast-div #contrast-note p {
  margin-top: 10px;
  padding-bottom: 7px;
  font-size: 14px;
}
#contrast-div #contrast-img {
  /* width: 100%; */
  padding-left: 56px;
  height: 36px;
  line-height: 34px;
  color: #04e3de;
  background: rgba(3, 35, 105, 0.85)
    url("../../../assets/imgs/contrast_icon.png") no-repeat 17px 7px;
  border: 1px solid #00ccff;
  text-align: left;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

#contrast-div #contrast-img .ichoice {
  color: #00ccff;
}

#contrast-div #contrast-img .ichoice .count {
  color: #00ccff;
}

#contrast-div .contrast-list {
  display: none;
  background-color: rgba(3, 35, 105, 0.85);
  padding: 7px 11px;
  border-radius: 4px;
  margin-bottom: 1px;
}

#contrast-div .contrast-list li {
  position: relative;
  width: 100%;
  height: 40px;
  line-height: 40px;
  display: inline-block;
  width: 175px;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 40px;
  font-size: 16px;
  white-space: nowrap;
  color: #9fdaf5;
}

#contrast-div .contrast-list li:nth-child(n + 2) {
  border-top: 1px solid #0c598f;
}

.arrow-down:after {
  width: 9px !important;
  height: 5px !important;
  background-image: url("../../../assets/imgs/fullScreenMap_down_arrow.png") !important;
  top: 17px !important;
}
#legend {
  display: none;
  position: absolute;
  bottom: 57px;
  left: 26px;
  z-index: 2000;
  background: #04236c;
}
#legend img {
  /* display: none; */
  margin-bottom: 10px;
}
#legend #legend-btn {
  padding-left: 54px;
  width: 178px;
  height: 36px;
  line-height: 34px;
  background: rgba(3, 35, 105, 0.85) url("../../../assets/imgs/legend_icon.png")
    no-repeat 18px center;
  border: 1px solid #00ccff;
  color: #02f1e7;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}
#legend #legend-btn:after {
  position: absolute;
  width: 5px;
  height: 9px;
  content: "";
  right: 20px;
  top: 13px;
  background: url("../../../assets/imgs/fullScreenMap_left_arrow.png") no-repeat
    center center;
}
#legend .legend-up-arrow:after {
  width: 9px !important;
  height: 9px !important;
  right: 18px !important;
  top: 13px !important;
  background-image: url("../../../assets/imgs/fullScreenMap_up_arrow.png") !important;
}
#legend #legend-btn:hover {
  background-color: rgba(3, 127, 167, 0.85);
}
/* .swiper-pagination-bullet:nth-child(4n + 1) {
  border-radius: 50%;
} */

#baseMapSelect #selected:after {
  display: none;
}
#arealocl {
  display: block;
  position: absolute;
  top: 57px;
  left: 26px;
  z-index: 2000;
  /* background: #04236c; */
  background: rgb(4, 15, 45);
}
#areaLocl #areaLocl-btn {
  padding-left: 54px;
  width: 178px;
  height: 36px;
  line-height: 34px;
  background: rgba(3, 35, 105, 0.85) url("../../../assets/imgs/legend_icon.png")
    no-repeat 18px center;
  border: 1px solid #00ccff;
  color: #02f1e7;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}
#areaLocl #areaLocl-btn:after {
  position: absolute;
  width: 5px;
  height: 9px;
  content: "";
  right: 20px;
  top: 13px;
  background: url("../../../assets/imgs/fullScreenMap_left_arrow.png") no-repeat
    center center;
}
#areaLocl .legend-up-arrow:after {
  width: 9px !important;
  height: 9px !important;
  right: 18px !important;
  top: 13px !important;
  background-image: url("../../../assets/imgs/fullScreenMap_down_arrow.png") !important;
}
#areaLocl #areaLocl-btn:hover {
  background-color: rgba(3, 127, 167, 0.85);
}
.localList {
  background: #04236c;
  height: auto;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 5px;
  box-sizing: border-box;
  padding: 7px;
}

.localList::-webkit-scrollbar {
  background: #0d2352;
}
.localList::-webkit-scrollbar-track {
  background: #0d2352;
}
/* 滚动条滑块 */
.localList::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(4, 180, 224, 0.78);
}
.localList::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(4, 180, 224, 0.78);
}
.localList table {
  width: 300px;
  color: #fff;
}
.localList table th,
.localList table td {
  padding: 5px 2px;
  text-align: center;
  font-weight: normal;
  background: #0d2352;
  border-bottom: 1px solid rgb(3, 35, 155);
}
.localList table caption {
  padding: 8px 2px;
  color: #02f1e7;
  text-align: center;
  font-size: 15px;
  background: #021945;
}
.localList table button {
  height: 24px;
  border: none;
  width: auto;
  color: #02f1e7;
  text-decoration: underline;
  background: none;
}
.localList table button:hover {
  color: #02f1e7;
}
</style>